<?php

/**
 * @author shuang
 * @date 2016-9-5 21:01:34
 */
use yii\helpers\Url;

$this->registerCssFile("/css/validate.css");
$this->registerCssFile("/js/ui-dialog.css");
$this->registerJsFile("/js/dialog-plus-min.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJsFile("/js/jquery.form.min.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJsFile("/js/Validform_v5.3.2_min.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJsFile("/js/common.js", [\yii\web\JqueryAsset::className(), "depends" => "\yii\web\JqueryAsset"]);
$this->registerJs('AjaxInitForm("#pwdForm", "#btnSubmit", 1);');
?>
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12 well ibox float-e-margins">
            <div class="ibox-title">修改密码</div>
            <div class="well-content ibox-content">
                <form name="pwdForm" id="pwdForm" url="<?php echo Url::toRoute(["updatepwd", "token" => Yii::$app->request->get("token")]); ?>">
                    <input type="hidden" name="token" value="<?php echo Yii::$app->request->get("token"); ?>"/>
                    <div class="control-group">
                        <label class="control-label">原始密码</label>
                        <div class="controls">
                            <input name="oldpassword" id="txtOldPassword" type="password" class="span6" datatype="*6-20" nullmsg="请输入旧密码" errormsg="密码范围在6-20位之间" sucmsg=" " />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">新密码</label>
                        <div class="controls">
                            <input name="password" id="txtPassword" type="password" class=" span6" datatype="*6-20" nullmsg="请输入新密码" errormsg="密码范围在6-20位之间" sucmsg=" " />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">重复新密码</label>
                        <div class="controls">
                            <input name="repassword" id="txtPassword1" type="password" class="span6" datatype="*" recheck="password" nullmsg="请再输入一次新密码" errormsg="两次输入的密码不一致" sucmsg=" " />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label"></label>
                        <div class="controls">
                            <input name="btnSubmit" id="btnSubmit" type="submit" class=" btn lightblue span2" value="确认修改" />
                        </div>
                    </div>
                </form>
            </div>
            <!-- panel-body -->
        </div>
    </div>
    <!-- contentpanel -->
